<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="Author" content="">
    <meta name="Keywords" content="">
    <meta name="Description" content="">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="telephone=no" name="format-detection" /> 
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>大转盘抽奖</title>
    <link rel="stylesheet"  href="src/css/base.css?__version=4.5">
    <link rel="stylesheet"  href="src/css/pages.css?__version=4.5">
</head>
<body>
    <div class="init_content" style="display: none;">
        <div class="warp luckdraw-warp" id="htmlDataList">
            <div class="luckdraw">
                <div class="luckdraw_top">
                    <img src="src/img/luckdraw_top.jpg">
                    <button class="btn rule"><img src="src/img/luckdraw_rule.png"></button>
                    <button class="btn prize"><img src="src/img/luckdraw_prize.png"></button>
                </div>
                <div class="luckdraw_bottom">
                    <div class="turntable-bg">
                        <div class="pointer"><img src="src/img/luckdraw_start.png" alt="pointer"/></div>
                        <div class="rotate" ><img id="rotate" src="src/img/luckdraw_gift.png" alt="turntable"/></div>
                    </div>
                    <div class="luckdraw_label">可用次数：<span>0次</span></div>
                </div>
                <div class="luckdraw_footer">
                    <div class="scrolltext">
                      <span class="notice"></span>
                      <div class="winBox">
                        <ul class="scroll" id="scroll"></ul>
                      </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="init_loading">
        <img src="src/img/page_loading.gif?v=1">
    </div>
    <div class="luckdraw_result none">
        <div class="luckdraw_result_content">
            <div class="top">
                <button class="closebtn"><img src="src/img/luckdraw_close.png"></button>
                <div class="title"><img src="src/img/luckdraw_result.png"></div>
                <div class="luckdraw_result_gift">
                    <img src="">
                    <div class="luckdraw_text">恭喜您获得</div>
                    <div class="luckdraw_textbig"></div>
                </div>
                <div class="luckdraw_result_footer"><img src="src/img/luckdraw_footer.png"></div>
            </div>
            <div class="center">
                <div class="luckdraw_ewm clearfix">
                    <img src="src/img/codeimg.jpg">
                    <div class="luckdraw_codetext">
                        <p>长按二维码</p>
                        <p>我也去抽奖</p>
                    </div>
                </div>
            </div>
            <div class="bottom">
                <p>赶紧把您中奖的好消息告诉给您的好友吧！</p>
                <div class="goshare"><button onclick="goShare()">去分享</button></div>
            </div>
        </div>
    </div>
    <div class="complaint_alertmsg none">
        <div class="msg"></div>
    </div>
    <div class="luckdraw_rule">
        <div class="luckdraw_rule_content">
            <button class="closebtn"><img src="src/img/luckdraw_close.png"></button>
            <img src="src/img/luckdraw_intro.png">
            <div class="luckdraw_rule_intro">
                <div>
                    <h4><span>1</span>活动时间</h4>
                    <p class="p">2018年2月5日-2月28日</p>
                    <h4><span>2</span>活动要求</h4>
                    <p class="p">活动期间所有的注册用户均可参与抽奖。；</p>
                    <p class="p">A、每天登陆可获得1次抽奖机会</p>
                    <p class="p">B、每成功邀请一位好友，除获得30金币奖励外，赠送一次抽奖机会；每日最多获得5次；</p>
                    <p class="p">C、单笔充值50元及以上可以获得1次免费次数，不限次数，“赚”够为止；</p>
                    <h4><span>3</span>奖品说明</h4>
                    <p class="p">抽奖获得的红包自动发放到账户，抽奖获得红包24小时内有效；可在我的红包中查看</p>
                    <h4><span>4</span>实物奖品说明</h4>
                    <p class="p">实物奖品在活动结束后3个工作日内请联系客服；</p>
                    <p class="p">抽奖次数仅限当天有效，请尽快使用；</p>
                    <p class="p">活动最终解释权归梦想抓娃娃所有。</p>
                    <p style="margin-top:10px;">注：</p>
                    <p class="notice"></p>
                </div>
            </div>
        </div>
    </div>
    <div class="luckdraw_prize none">
        <div class="luckdraw_prize_content">
            <button class="closebtn"><img src="src/img/luckdraw_close.png"></button>
            <img src="src/img/luckdraw_mygift.png">
            <div class="luckdraw_prize_intro">
                <ul id="drawdetail">
                </ul>
            </div>
        </div>
    </div>
<script type="text/javascript" src="src/js/jquery-1.10.1.min.js?__version=3.9"></script>
<script type="text/javascript" src="src/js/init.js?__version=3.9"></script>
<script type="text/javascript" src="src/js/awardRotate.js?__version=3.9"></script>
<script type="text/javascript" src="src/js/luckdraw.js?__version=4.6"></script>
<script type="text/javascript">
        var isapp=getQueryString('isapp');
        
        console.log(isapp)
        if(isapp!="1"){
            addheader("大转盘抽奖","/");
        }else{
            $('.luckdraw-warp').css("padding-top","0")
            $(".luckdraw_result_content").css("padding-top","10px")
        }
        var num = 0;
        function goLeft() {
            if (num == -3350) {num = 0;}
            num -= 1;
            $(".scroll").css({left: num})
        }
        var timer = setInterval(goLeft, 20);

        $(document).on("click",".luckdraw_result_content .top .closebtn",function(){
            $(".luckdraw_result").addClass("none")
        })
        $(document).on("click",".luckdraw_rule_content .closebtn",function(){
            $(".luckdraw_rule").addClass("none")
        })
        $(document).on("click",".rule",function(){
            $(".luckdraw_rule").removeClass("none")
        })
        $(document).on("click",".luckdraw_prize_content .closebtn",function(){
            $(".luckdraw_prize").addClass("none")
        })
        $(document).on("click",".prize",function(){
            if(!token){
                $(".complaint_alertmsg .msg").html("请先登录")
                $(".complaint_alertmsg").removeClass("none");
                 setTimeout(function(){
                    $(".complaint_alertmsg").addClass("none");
                },2000)
                return;
            }
            drawdetail();
            $(".luckdraw_prize").removeClass("none")
        })
        var u = navigator.userAgent;
        var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1;
        var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
        if(isiOS){
            $(".luckdraw_rule_intro .notice").html("抽奖次数仅限当天有效，请尽快使用；活动最终解释权归梦想抓娃娃所有,与苹果公司无关.")
        }else{
            $(".luckdraw_rule_intro .notice").html("抽奖次数仅限当天有效，请尽快使用；活动最终解释权归梦想抓娃娃所有.")
        }
        function goShare(){
            if(isapp!="1"){
                window.location.href="/invitation.html"
            }else{
                if(isAndroid){
                    myapp.goShare()
                }else{
                    window.webkit.messageHandlers.myapp.postMessage('goShare');
                }
            }
        }
</script>
</body>
</html>